<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>


<script>
	
	var urls = "http://www.geekhelp.cn/bmy/api/notify/payResult?charset=utf-8&out_trade_no=1562898960221&method=alipay.trade.page.pay.return&total_amount=0.01&sign=QhoPwP20PlfLPvRgTeJSOLm1P3zltwIiq4QWUyEvFGpqe5hpctr7T99tDI8CX3ZUiyQfdMeVPkjTJlszGUD0ez75zAnxb1jWPD2zPYrUPA3%2Bp9jZLmkcQFi3i%2BrSRItmKt16yRV7%2F7PiBVdiNH4gYzPsV9LH0wFL2bsHxAViE2s9qafeAJWOSYAZEeZVb3RT%2FyjU5ZyF4%2BFZGv1WiMSG4GK%2BeKso628ZjAaSO6TIvaF9mzsL1iQ9xfHp1T1yIxLu%2BQGsF4O057VrS9kWJc0Ia53C0NHL8vIMtfWP%2BViSo1kWMq0sD3pQ1bAIvcKQ%2BHCeai8ZL4Klb3ZsDvYK1gFacw%3D%3D&trade_no=2019071222001448871051874564&auth_app_id=2019070365762545&version=1.0&app_id=2019070365762545&sign_type=RSA2&seller_id=2088531614042820&timestamp=2019-07-12+10%3A37%3A07"
	
	function f (url) {
		var reg_url = /^[^\?]+\?([\w\W]+)$/,
			reg_para = /([^&=]+)=([\w\W]*?)(&|$|#)/g,
			arr_url = reg_url.exec(url),
			ret = {};
		if (arr_url && arr_url[1]) {
			var str_para = arr_url[1], result;
			while ((result = reg_para.exec(str_para)) != null) {
				ret[result[1]] = result[2];
			}
		}
		return ret;
	}
	
	console.log(f(urls))
	
	
</script>
</body>
</html>